﻿<controls:ChildWindow x:Class="Candy.MembershipRequestWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="460" Height="320" 
           Title="MembershipRequestWindow" 
           Style="{StaticResource ChildWindowStyleChromeless}">
    <Border Margin="0" BorderBrush="{StaticResource Accent}" Background="{StaticResource ControlBackgroundDark}" BorderThickness="1" >
		<Grid x:Name="LayoutRoot" Margin="4,0,4,4">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>

			<Button x:Name="CancelButton" Command="{Binding Cancel}" Content="Cancel" Click="CancelButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="5" />
			<Button x:Name="OKButton" Command="{Binding Send}" Content="OK" Click="OKButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,8,90,8" Grid.Row="5" />
			
			<TextBlock HorizontalAlignment="Left" Margin="8,6,0,8" x:Name="textBlock1" Text="Membership Request" VerticalAlignment="Center" Foreground="{StaticResource Foreground}" FontFamily="{StaticResource AppFontFamily}" FontSize="{StaticResource HeaderFontSize}" />
			<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" x:Name="textBlock2" Text="Message" VerticalAlignment="Center" Grid.Row="1"  Style="{StaticResource DefaultLabel}" />
			<TextBox Text="{Binding Message, Mode=TwoWay}" Grid.Row="2" Margin="8" x:Name="textBox1" AcceptsReturn="True" />
			<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" x:Name="textBlock3" Text="Role" VerticalAlignment="Center" Grid.Row="3" />
			<RadioButton Content="Guest" IsChecked="{Binding AsGuest, Mode=TwoWay}" Grid.Row="4" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="radioButton1" VerticalAlignment="Center" Foreground="{StaticResource Foreground}" Style="{StaticResource DefaultRadioButton}" />
			<RadioButton Content="Member" IsChecked="{Binding AsMember, Mode=TwoWay}"  HorizontalAlignment="Left" Margin="91,8,0,0" x:Name="radioButton2" VerticalAlignment="Top" Grid.Row="4" Foreground="{StaticResource Foreground}" />
			<ProgressBar Margin="0" VerticalAlignment="Top" IsIndeterminate="True"/>
		</Grid>
	</Border>
</controls:ChildWindow>